<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/common/default.jsp"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<style type="text/css">
		.advance_tip_pwd{
			background-color: #fff;
		    left: 42%;
		    position: fixed;
		    top: 200px;
		    width: 487px;
		    z-index: 5;
		}
		</style>
	</head>
	
	<body>
		<div class="breadcrumbs" id="breadcrumbs">
			<script type="text/javascript">try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}</script>
			<ul class="breadcrumb">
				<li><i class="icon-home home-icon"></i>首页</li>
				<li>系统管理</li>
				<li class="active"><a href="${ctx}/sys/login/logger/list" class="cinema_option">日志管理</a></li>
			</ul>	
		</div>
	
		<div class="page-content">
				<div class="page-header">
					<h1>日志管理
						<small>
						<i class="icon-double-angle-right"></i>
						查看
						</small>					
					</h1>			
				</div> 
				
				<form  id="loggerSearchForm" method="post">
					<input type="text" id="search_userName" name="search_userName" maxlength="50" placeholder="账号" class="col-xs-10 col-sm-2" value=""/>
					<input id="sysUserInfoSearch" type="submit" value="查询" style="margin-left: 10px">
				</form>
				
				<div class="row">
				<div class="col-xs-12">
				<table id="simple-table" class="table table-striped table-bordered table-hover"  style="margin-top:5px;">
							<thead>
								<tr>
									<th class='center' style="width:50px;">序号</th>
									<th class="left">账号</th>
									<th class="left">IP</th>
									<th class="left">路径</th>
									<th class="left">时间</th>
									<th class="left">类型</th>
								</tr>
							</thead>
												
							<tbody id="userlist">
							<c:forEach var="res" items="${res.data.rows}" varStatus="status">
							<tr style="background-color: rgb(255, 255, 255);" id="userinfo_row_${res.loggerId}" >
								 <td title="${res.loginName}">&nbsp;${status.index+1}</td>
				                 <td  title="${res.loginName}">&nbsp;${res.loginName}</td>
				                 <td title="${res.loginIp}">&nbsp;${res.loginIp}</td>
				                 <td title="${res.url}">&nbsp;${res.url}</td>
				                 <td >&nbsp;
				                 <fmt:formatDate value="${res.createTime}" pattern="yyyy-MM-dd HH:mm"/>
				                 </td>
				                 <td  title="${res.type}">&nbsp;
				                 <c:choose>
				                 	<c:when test="${res.type==1}">登录</c:when>
				                 	<c:when test="${res.type==2}">登出</c:when>
				                 	<c:when test="${res.type==3}">其它</c:when>
				                 </c:choose>
				                 </td>
							</tr> 
							</c:forEach>
							</tbody>
				</table>
				</div>
				</div>	
				<%@ include file="/WEB-INF/views/decorators/page.jsp"%> 		 
			</div>
			
	</body>
	

	
</html>
